<?php

declare(strict_types=1);
namespace App\Controller\Api;

use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use App\Controller\AbstractController;
use App\Service\LogisticService\LogisticService;

/**
 * @Controller(prefix="/Logistics")
 * 物流轨迹查询中心 
 */
class LogisticsController extends AbstractController
{
    /**
     * 批量获取物流轨迹明细
     * @RequestMapping(path="BatchQueryLogistics", methods="POST")
     * @return string[]
     */
    public function BatchQueryLogistics( RequestInterface $request,LogisticService $LogisticService ) 
    {
        return $LogisticService->queryBatchLogisticList($request->getParsedBody());
    }   

    /**
     * 查询云仓所有物流信息（用于云仓发货下拉框选项卡）
     * @RequestMapping(path="QueryExpressList", methods="POST")
     * @return string[]
     */
    public function QueryExpressList( RequestInterface $request,LogisticService $LogisticService )
    {
        return $LogisticService->QueryExpressList($request->getParsedBody());
    }
    
    /**
     * 查询云仓所有物流信息
     * @RequestMapping(path="QueryYcExpressList", methods="POST")
     * @return string[]
     */
    public function QueryYcExpressList( RequestInterface $request,LogisticService $LogisticService )
    {
        return $LogisticService->QueryYcExpressList($request->getParsedBody());
    }
    
    /**
     * 批量获取微信物流信息
     * @RequestMapping(path="QueryWxExpressList", methods="POST")
     * @return string[]
     */
    public function QueryWxExpressList( RequestInterface $request,LogisticService $LogisticService )
    {
        return $LogisticService->QueryWxExpressList($request->getParsedBody());
    }
    
    /**
     * 绑定微信物流信息
     * @RequestMapping(path="BindBbcExpress", methods="POST")
     * @return string[]
     */
    public function BindBbcExpress( RequestInterface $request,LogisticService $LogisticService )
    {
        return $LogisticService->BindBbcExpress($request->getParsedBody());
    }
}
